package com.tesis_2.BL;

import java.util.ArrayList;

import org.json.JSONException;

import com.tesis_2.DA.DAOComentarios;
import com.tesis_2.MO.MOComentario;
import com.tesis_2.MO.MODscore;

public class BLComentarios {
	
	public static ArrayList<MOComentario> getComentarioByRestId(Integer restid) throws JSONException {
		
		return DAOComentarios.getComentarioByRestId(restid);
		
	}
	
	public static MOComentario updateComentario(Integer resid ,MOComentario comment) throws JSONException
	{
		return DAOComentarios.updateComentario(resid, comment);
	}
	
	public static ArrayList<MODscore> getDscoresByResId(Integer reservation_id)
	{
		return DAOComentarios.getDscoresByResId(reservation_id);
		
	}
	
	public static MODscore updateDscore(Integer dscore_id ,Integer rate) throws JSONException 
	{
		return DAOComentarios.updateDscore(dscore_id, rate);
	}
	
}
